﻿<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>D.H后台系统</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/views/css/login.css" />
</head>

<body>
	<%-- <form id="login"> --%>
	<form:form id="login" commandName="userPo" modelAttribute="userPo"
		action="${pageContext.request.contextPath}/admin-login/loginvalidate"
		method="post">

		<h1>Log In</h1>
		<fieldset id="inputs">
			<form:input id="username" path="username" placeholder="Username" />
			<form:password id="password" path="password" placeholder="Password" />
			<form:input id="scode" path="scode" placeholder="Security Code" />
			<img id="scodeimg" onclick="javascript:flushscode();"
				src="${pageContext.request.contextPath}/scode/createpic" />
		</fieldset>

		<fieldset id="inputs">
			<span>${errStr}</span>
		</fieldset>

		<fieldset id="actions">

			<input type="submit" id="submit" value="Log in"> <!-- <a href="">Forgot your password?</a><a href="">Register</a> -->
		</fieldset>

		<!-- <a href="http://www.sina.net" id="back">Back to article...</a> -->


	</form:form>
	<%-- </form> --%>



	<!-- BSA AdPacks code -->
	<input type="hidden" id="domain"
		value="${pageContext.request.contextPath}" />
	<script
		src="${pageContext.request.contextPath}/views/js/libs/jquery-1.7.1.min.js"></script>
	<script type="text/javascript"
		src="${pageContext.request.contextPath}/views/js/login.js"></script>
	


	<div style="clear: both"></div>
	<br><br>
			<div style="text-align: center">

				<br><br>
			</div>
</body>
</html>
